﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using miniMana.IService;
using miniMana.Request.GetSwiperData;
using miniMana.Service;

namespace miniMana.Controllers
{
    /// <summary>
    /// 
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    public class HomeController : ControllerBase
    {
        /// <summary>
        /// 首页
        /// </summary>
        public IHomeService HomeService = new HomeService();

        /// <summary>
        /// 获取首页轮播图数据
        /// </summary>
        [HttpGet("[action]")]
        public List<GetSwiperDataResponse> GetSwiperData()
        {
           return  HomeService.GetSwiperData();
        }
    }
}
